package com.yanqu.road.server.cmd.activity.huashigang;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.huashigang.HuaShiGangModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.GameProtocol;

/**
 * @Author wpj
 * @Date 2020/10/7
 */
@Cmd(code = GameProtocol.S_HUA_SHI_GANG_GET_SHOP_DATA, desc = "花石纲攻击怪物")
public class GetShopDataCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.getModule(HuaShiGangModule.class).syncHuaShiGangShopData(ClientProtocol.U_HUA_SHI_GANG_GET_SHOP_DATA);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
